import request from '@/utils/request';
export async function queryNetCar() {
  return request('/api/netCarRecord');
}

export async function createNetCar(params) {
  return request('/api/netCarRecord', {
    method: 'POST',
    data: params,
  });
}

export async function deleteNetCar(params) {
  return request('/api/netCarRecord', {
    method: 'DELETE',
    data: params,
  });
}

export async function updateNetCar(params) {
  return request(`/api/netCarRecord/${params._id}`, {
    method: 'PUT',
    data: params,
  });
}
